package com.liangwj.springbootrabbitmq.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <b>Description:</b> RabbitMQ 所用的对象 user <br/>
 * @author Lingwenjun
 * @date 2019/1/4-17:22
 * @version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User implements Serializable {

    //不序列化无法进行传输,会报错:SimpleMessageConverter only supports String, byte[] and Serializable payloads,
    private static final Long UUID = 1L;

    private Long userId;

    private String userName;

    private String password;


    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
